﻿using CQIE.LabAssist.Models;
using CQIE.LabAssist.PublicHelp;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CQIE.LabAssist.DataAccesss
{

    public interface IMangmentService
    {
        //获取所有学期
        JsonResult getAllSemester();
        //获取当前学期
        JsonResult getCurrentSemester();

        /// 学期新增
        bool addSemester(string name, bool state);

        ///学期删除
        bool deleteSemester(int semesterId);

        //学期更新
        bool updateSemester([FromBody] Semester semester);

        //获取所有学院
        JsonResult  getAllAcademician();

        /// 学院新增
        bool addAcademician(string name, bool state);

        ///学院删除
        bool deleteAcademician(int academicianId);

        //学院更新
        bool updateAcademician([FromBody] Academician academician);
        /// <summary>
        /// 导出Excel文件
        /// </summary>
        /// <param name="pubCheckList"></param>
        /// <param name="filePath"></param>
        /// <returns></returns>
        string exportExcel(List<PubCheck> pubCheckList, string filePath);


    }
}
